package selef.xiafan.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import selef.xiafan.entity.order.OrderCustomer;

import java.util.List;

/**
 * @author xiafan
 * @version 1.0
 * @date 2021/7/20 19:44
 */
public interface OrderCustomerDao extends JpaRepository<OrderCustomer, Integer> {
    OrderCustomer findByOrderId(String orderId);

//    List<OrderCustomer> findAllByOrderId(String orderId);

    List<OrderCustomer> findAllByCustomerId(Integer customerId);


    void deleteById(Integer id);

}
